@charset "utf-8";

.products-content {
  position: relative;
  width: 100%;
  padding-top: 0px;
  .filter-box {
    overflow-y: auto;
    width: 100%;
    position: absolute;
    padding: 0 260px;
    max-height: 300px;
    min-height: 100px;
    background: #f8f8f8;
    transition: ease 0.4s all;
    top: -69px;
    z-index: 20;
    box-shadow: rgba(0, 0, 0, 0.6) 0px 7px 10px -7px;
    transform-origin: top;
    transform: rotateX(90deg);
    opacity: 0;
    &::-webkit-scrollbar {
      width: 3px;
    }
    &::-webkit-scrollbar-track {
      border-radius: 10px;
      background-color: rgba(0, 0, 0, 0.1);
    }
    &::-webkit-scrollbar-thumb {
      border-radius: 10px;
      box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
      background-color: rgba(0, 0, 0, 0.1);
    }
    .pro-type-list {
      padding: 15px 0 15px;
      & > ul {
        width: 100%;
        display: flex;
        flex-wrap: wrap;
        a {
          transition: .4s all ease;
        }
        a:hover {
          color: $mainColor;
        }
        .LiLevel1 {
          width: 25%;
          margin-bottom: 20px;
          li:last-child {
            margin-bottom: 0;
          }
          li a {
            width: 100%;
            height: 100%;
            line-height: 40px;
            @include linef(1);
            text-align: center;
          }
          & > a {
            font-size: 18px;
            @include linef(1);
            height: 35px;
            line-height: 35px;
            background: #fff;
            text-align: center;
            width: 70%;
            border-top: 2px solid $mainColor;
          }
        }
        .LiLevel1 .sub-menu {
          margin: 10px 0 0;
          display: flex;
          flex-wrap: wrap;
          flex-direction: column;
        }
        .LiLevel2 {
          width: 70%;
          height: 35px;
          background-color: #fff;
          margin-bottom: 10px;
          a {
            font-size: 13px;
          }
        }
        .LiLevel2 .sub-menu {
          display: none;
        }
      }
      .prosubmenu {
        width: 100%;
        &>ul {
          width: 100%;
          display: flex;
          flex-wrap: wrap;
          a {
            transition: .4s all ease;
          }
          a:hover {
            color: $mainColor;
          }
          &>li {
            width: 25%;
            margin-bottom: 10px;
            & > a {
              width: 70%;
              font-size: 18px;
              @include linef(1);
              height: 35px;
              line-height: 35px;
              background: #fff;
              text-align: center;
              width: 70%;
              border-top: 2px solid $mainColor;
            }
          }
        }
      }
    }
    .scrollTip {
      height: 35px;
      width: 35px;
      box-sizing: border-box;
      position: absolute;
      right: 260px;
      bottom: 40px;
      animation: down 1.5s infinite;
      border-radius: 50%;
      background: rgba(0, 0, 0, 0.3);
      -webkit-animation: down 1.5s infinite;
      display: flex;
      justify-content: center;
      align-items: center;
      i {
        position: relative;
        top: 1px;
        transform: scale(2);
        color: #fff;
      }
    }
  }
  .type-box {
    margin: 0 260px 50px;
    h1 {
      padding-left: 10px;
      color: #2b2b2b;
      border-left: $mainColor 5px solid;
      border-bottom: #eee 1px solid;
      display: none;
    }
  }
  .pro-list {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    box-sizing: border-box;
    margin-top: 80px;
    padding: 0 260px 0;
    li {
      transition: all 0.4s ease;
    }
    .list-1 {
      box-sizing: border-box;
      flex: 1;
      width: 23%;
      min-width: 23%;
      max-width: 23%;
      border: 2px solid #eeeeee;
      margin-right: 20px;
      margin-bottom: 40px;
      &:nth-of-type(4n) {
        margin-right: 0;
      }
      .pro-img {
        position: relative;
        width: 100%;
        // height: 250px;
        display: flex;
        justify-content: center;
        align-items: center;
        a {
          width: 100%;
          height: 100%;
          display: flex;
          justify-content: center;
          align-items: center;
        }
        img {
          position: absolute;
          max-width: 100%;
          max-height: 100%;
          display: block;
        }
        &:after {
          display: block;
          content: "";
          padding-top: 100%;
        }
      }
      .pro-name {
        padding: 10px 20px 0;
        min-height: 50px;
        display: flex;
        justify-content: center;
        align-items: center;
        a {
          text-align: center;
          @include linef(2);
          color: #4c4c4c;
          font-size: 18px;
          font-weight: bold;
          line-height: 24px;
        }
      }
      article {
        padding: 0 20px;
        margin-top: 10px;
        a {
          color: #4c4c4c;
          line-height: 18px;
          font-size: 14px;
          @include linef(2);
        }
      }
      & > span {
        display: block;
        margin: 20px;
        height: 1px;
        background: #eeeeee;
      }
      .more-btn {
        display: block;
        margin: 30px 20px;
        height: 37px;
        background: $mainColor;
        color: #ffffff;
        line-height: 37px;
        text-align: center;
      }
      &:hover {
        box-shadow: 0 5px 5px rgba(0, 0, 0, 0.1);
        transform: translateY(-3px);
      }
    }
    .list-2 {
      width: 100%;
      height: 280px;
      display: flex;
      margin-bottom: 30px;
      .pro-img {
        width: 280px;
        height: 280px;
        display: flex;
        justify-content: center;
        align-items: center;
        border: 1px solid #e5e5e5;
        img {
          display: block;
          width: 100%;
        }
      }
      .pro-info {
        padding: 40px 100px;
        flex: 1;
        background: #f6f6f6;
        .pro-name {
          a {
            color: #4c4c4c;
            font-size: 24px;
            font-weight: bold;
            color: #4c4c4c;
            line-height: 24px;
            @include linef(1);
          }
        }
        article {
          margin-top: 35px;
          a {
            font-size: 16px;
            color: #707070;
            line-height: 24px;
            @include linef(3);
          }
        }
        .more-btn {
          margin-top: 35px;
          width: 200px;
          height: 42px;
          display: block;
          display: flex;
          justify-content: center;
          align-items: center;
          border: 1px solid $mainColor;
          color: $mainColor;
          font-size: 18px;
          font-weight: bold;
          transition: 0.3s ease all;
          i {
            position: relative;
            top: 1.2px;
            margin-left: 5px;
            transform: scale(1.1);
          }
        }
      }
      &:hover {
        cursor: pointer;
        box-shadow: 0 5px 5px 0 rgba(0, 0, 0, 0.1);
        transform: translateY(5px);
        & .pro-info .more-btn {
          background: $mainColor;
          color: #ffffff;
          & i {
            color: #ffffff;
          }
        }
      }
      .compare-action {
        position: relative;
        margin: 20px 0;
        width: 200px;
        height: 42px;
      }
      .compare-action .compare-action-check + label {
        border-color: $brightColor;
      }
    }
    .list-1.pro-checked {
      border: 2px solid $mainColor;
    }
    &:after {
      content: "";
      width: 23%;
    }
  }
  .seo-key {
    margin: 0 260px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    padding: 10px;
    line-height: 1.7em;
    color: #2b2b2b;
    .keywords {
      margin-top: 10px;
      a {
        padding: 10px;
        background: #f1f1f1;
        line-height: 2em;
        border-radius: 999px;
        margin-right: 20px;
        color: #2b2b2b;
      }
    }
  }
}

.pro-filter {
  position: absolute;
  top: 19px;
  right: 260px;
  height: 40px;
  background: $mainColor;
  padding: 0 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-right: 40px;
  &>a {
    color: #fff !important;
    user-select: none;
  }
  i {
    top: 10px;
    right: 20px;
    position: absolute;
    transform: scale(1.5);
    color: #ffffff;
    &:hover {
      cursor: pointer;
    }
  }
  &:hover {
    cursor: pointer;
  }
}


@keyframes down {
  0% {
    transform: translate(0);
  }
  20% {
    transform: translateY(15px);
  }
  40% {
    transform: translate(0);
  }
}
@-webkit-keyframes down {
  0% {
    transform: translate(0);
  }
  20% {
    transform: translateY(15px);
  }
  40% {
    transform: translate(0);
  }
}